<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<h1 class="layout">Create Time Report</h1>

<html:errors/>

<html:form action="timeReport.do?method=showTimeReport" method="post">
    <html:hidden name="timeReportActionForm" property="nodeId"/>
    <table class="layout">
        <tr>
            <th class="layout">Contactables:</th>
            <td class="layout">
                <html:select multiple="true" size="10" name="timeReportActionForm" property="contactableIds">
                    <html:options collection="contactablePairs" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
        <tr>
            <th class="layout">Recursive:</th>
            <td class="layout"><html:checkbox name="timeReportActionForm" property="isRecursive"/> Should the tree be searched recursively?</td>
        </tr>
        <tr>
            <th class="layout">Inclusions:</th>
            <td class="layout">
                <table>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeTasks"/> Task Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeTypes"/> Task Type Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeStates"/> State Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeMonths"/> Month Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeWeeks"/> Week Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeDays"/> Day Summary</td></tr>
                    <tr><td><html:checkbox name="timeReportActionForm" property="includeEntries"/> Individual entries</td></tr>
                </table>
            </td>
        </tr>
        <tr>
            <th class="layout">Start Date:</th>
            <td class="layout">
                <html:select name="timeReportActionForm" property="startYear" size="1">
                    <html:options collection="years" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="timeReportActionForm" property="startMonth" size="1">
                    <html:options collection="months" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="timeReportActionForm" property="startDay" size="1">
                    <html:options collection="days" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
        <tr>
            <th class="layout">Stop Date:</th>
            <td class="layout">
                <html:select name="timeReportActionForm" property="stopYear" size="1">
                    <html:options collection="years" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="timeReportActionForm" property="stopMonth" size="1">
                    <html:options collection="months" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="timeReportActionForm" property="stopDay" size="1">
                    <html:options collection="days" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
    </table>
    <div class="buttons">
        <html:submit property="btnSubmit" value="OK"/>
        <html:submit property="btnSubmit" value="Cancel"/>
    </div>
</html:form>
